x86emul: fold SReg PUSH/POP cases
authorJan Beulich <jbeulich@suse.com>
Fri, 9 Dec 2016 11:05:36 +0000 (12:05 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 9 Dec 2016 11:05:36 +0000 (12:05 +0100)
commit7a745cbe463adcf9f305bc75cfe9fa10ae9cdf78
tree11fed6bd7c121433ed42d06031ffcf52dcdcaa27
parentb286dd2604e736d66bce37291e1ffcb5ce57397d
x86emul: fold SReg PUSH/POP cases

Now that segment registers are numbered naturally this can be easily
done to achieve some code size reduction.

Also consistently use X86EMUL_OKAY in the code being touched.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/x86_emulate/x86_emulate.c